<template>
    <div class="profile-upasswd-container">
        <input v-model="passwd" class="p-u-c-pass" type="password" placeholder="新密码">
        <br>
        <input class="p-u-c-but" type="button" value="提交修改" @click="commit">
    </div>
</template>

<script>

import student_request from "@/axios/student";

export default {
    data() {
        return {
            passwd: ""
        }
    },
    methods: {
        commit() {
            student_request.axiosAlterInfo(0, this.passwd, this.$store.state.user.sid);
        }
    }
}
</script>

<style lang="scss">
@import "@prof/scss/passwd-index.scss";
</style>